package br.com.fafica.sisape.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;

import br.com.fafica.sisape.control.ControllerPrincipal;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.sql.SQLException;
import java.awt.Color;
import java.awt.TextArea;

public class TelaVizualizarUsuarios extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaVizualizarUsuarios frame = new TelaVizualizarUsuarios();
					frame.setVisible(true);
					
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TelaVizualizarUsuarios() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 689, 448);
		contentPane = new JPanel();
		contentPane.setBackground(Color.WHITE);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnNewButton = new JButton("New button");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
			}
		});
		btnNewButton.setBounds(538, 362, 125, 36);
		contentPane.add(btnNewButton);
		
		TextArea textArea = new TextArea();
		textArea.setBounds(10, 10, 618, 334);
		contentPane.add(textArea);
		//String exibir = "";
		//try {
			ControllerPrincipal control = new ControllerPrincipal();
		//	exibir = "";
			///try{
				//exibir = control.VizualizarUsuarios();
			//}catch(SQLException e){
				//System.out.println(e);
			//}
			
		//} catch (Exception e) {
		//	e.printStackTrace();
		//}
		//textArea.setText(exibir);
	}
}
